package org.tuoren.official.domain.bo;

import org.tuoren.common.core.validate.AddGroup;
import org.tuoren.common.core.validate.EditGroup;
import org.tuoren.official.domain.TFloatingAds;
import org.tuoren.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 悬浮广告业务对象 t_floating_ads
 *
 * @author Lion Li
 * @date 2025-05-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TFloatingAds.class, reverseConvertGenerate = false)
public class TFloatingAdsBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 背景
     */
    @NotBlank(message = "背景不能为空", groups = { AddGroup.class, EditGroup.class })
    private String photoUrl;

    /**
     * 是否展示 1显示0隐藏
     */
    @NotNull(message = "是否展示 1显示0隐藏不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long isShow;

    /**
     * 链接地址
     */
    @NotBlank(message = "链接地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String linkUrl;


}
